package Main;

public class Event {
	
	public enum EventStatus{
		open,
		closed
	};
	
	private static int lastEventID=0;
	private int eventID;
	public String eventTitle;
	public String eventDate;
	public String eventTime;
	public int eventCapacity;	
	public EventStatus eventStatus;
	
	private int getID()
	{
		return lastEventID++;
	}
	
	public Event(String title, String date, String time, int capacity)
	{
		eventID=getID();
		eventTitle=title;
		eventDate=date;
		eventTitle=time;
		eventCapacity=capacity;
		eventStatus=EventStatus.open;
	}
	
	public String toString()
	{
		String str="";
		str= "ID: "+ eventID + "\n"
				+ "EventTitle: " + eventTitle + "\n"
				+ "EventDate: " + eventDate + "\n"
				+ "EventCapaciry: " + eventCapacity + "\n"
				+ "EventStatus: " + eventStatus + "\n";
		return str;
	}

}
